<?php
$oAdpos = new Adpos();
$list = $oAdpos->get_list('*', $_GET, get_major_key(array('rank' => 'DESC', 'id' => 'DESC')), $__page, $__pagesize);

if(!empty($list['list'])){
	
	// 主键排序字段
	make_major_key_options($major_key_arr = array(
		'id'	=> 'ID',
		'rank'	=> '排序',
		'ads'	=> '广告数',
	));
		
	foreach($list['list'] as $key => $row){
		$row['addtime'] = ftime($row['addtime']);
		$row['updatetime'] = ftime($row['updatetime']);
		$list['list'][$key] = $row;
	}
	$vars['list'] = $list['list'];
	$vars['pagelist'] = $list['pagelist'];
}

?>